.class public final Les/z50;
.super Ljava/lang/Object;
.source "IndexEntryIterator.java"

# interfaces
.implements Ljava/util/Iterator;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Iterator<",
        "Les/y50;",
        ">;"
    }
.end annotation


# instance fields
.field private a:I

.field private b:Les/y50;

.field private final c:Lcom/estrongs/fs/impl/usb/fs/ntfs/s;

.field private final d:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;


# direct methods
.method public constructor <init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;Lcom/estrongs/fs/impl/usb/fs/ntfs/s;I)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput p3, p0, Les/z50;->a:I

    .line 3
    iput-object p1, p0, Les/z50;->d:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    .line 4
    iput-object p2, p0, Les/z50;->c:Lcom/estrongs/fs/impl/usb/fs/ntfs/s;

    .line 5
    invoke-direct {p0}, Les/z50;->a()V

    return-void
.end method

.method private a()V
    .locals 4

    .line 1
    new-instance v0, Les/y50;

    iget-object v1, p0, Les/z50;->d:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    iget-object v2, p0, Les/z50;->c:Lcom/estrongs/fs/impl/usb/fs/ntfs/s;

    iget v3, p0, Les/z50;->a:I

    invoke-direct {v0, v1, v2, v3}, Les/y50;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;Lcom/estrongs/fs/impl/usb/fs/ntfs/s;I)V

    iput-object v0, p0, Les/z50;->b:Les/y50;

    const/4 v1, 0x0

    .line 2
    :try_start_0
    invoke-virtual {v0}, Les/y50;->n()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/z50;->b:Les/y50;

    invoke-virtual {v0}, Les/y50;->l()Z

    move-result v0

    if-nez v0, :cond_0

    .line 3
    iput-object v1, p0, Les/z50;->b:Les/y50;
    :try_end_0
    .catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 4
    :catch_0
    iput-object v1, p0, Les/z50;->b:Les/y50;

    :cond_0
    :goto_0
    return-void
.end method


# virtual methods
.method public hasNext()Z
    .locals 2

    .line 1
    iget-object v0, p0, Les/z50;->b:Les/y50;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    invoke-virtual {v0}, Les/y50;->n()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Les/z50;->b:Les/y50;

    invoke-virtual {v0}, Les/y50;->l()Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    const/4 v1, 0x1

    :cond_2
    return v1
.end method

.method public next()Les/y50;
    .locals 5

    .line 2
    iget-object v0, p0, Les/z50;->b:Les/y50;

    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {v0}, Les/y50;->j()I

    move-result v1

    if-lez v1, :cond_0

    .line 4
    iget v2, p0, Les/z50;->a:I

    add-int/2addr v2, v1

    iput v2, p0, Les/z50;->a:I

    .line 5
    invoke-direct {p0}, Les/z50;->a()V

    return-object v0

    .line 6
    :cond_0
    new-instance v0, Ljava/lang/IllegalStateException;

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v3, p0, Les/z50;->b:Les/y50;

    .line 7
    invoke-virtual {v3}, Les/y50;->h()Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    move-result-object v3

    invoke-virtual {v3}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->i()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    iget-object v3, p0, Les/z50;->b:Les/y50;

    .line 8
    invoke-virtual {v3}, Les/y50;->h()Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    move-result-object v3

    invoke-virtual {v3}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->m()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v1, v2

    const-string v2, "Index entry size is 0, filesystem is corrupt.  Parent directory: \'%s\', reference number \'%d\'"

    .line 9
    invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 10
    :cond_1
    new-instance v0, Ljava/util/NoSuchElementException;

    invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V

    throw v0
.end method

.method public bridge synthetic next()Ljava/lang/Object;
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/z50;->next()Les/y50;

    move-result-object v0

    return-object v0
.end method

.method public remove()V
    .locals 1

    .line 1
    new-instance v0, Ljava/lang/UnsupportedOperationException;

    invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V

    throw v0
.end method
